﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Orders.aspx.cs" Inherits="UI_Orders_Orders" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ebay订单管理</title>
    <script src="../../js/common.js" type="text/javascript"></script>
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../../js/FileUpload/ajaxfileupload.js" type="text/javascript"></script>
    <script src="../../js/Orders.js" type="text/javascript"></script>

    <script src="../../js/jquery.autocomplete.js" type="text/javascript"></script>
    <link href="../../css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #tcmd td
        {
            width:120px;
        }
        #tcmd td
        {
            text-align:center;
        }
    </style>
</head>
<body>
    <form id= "fomrquery" runat="server">
    <div class="div_Title">
        <span class="Body_Title">》》<%=this.Title %></span>
    </div>    
    <div id="p" class="easyui-panel" title="请输入查询条件..." style="margin-bottom:5px; width:1100px">
        <table>
            <tr>
                <td>Rec_Num:</td>
                <td>
            	    <input id="txtOrderId" runat="server" style="width:200px;" />
                </td>
                <td>ebay帐号:</td>
                <td>
            	    <select  id="ddlebayUserId" runat="server" class="easyui-combobox" style="width:200px;"></select>
                </td>
                <td><input type="radio"  id = "rppei" runat="server" name = "g1" checked="true"/><label for = "rppei">匹配日期</label></td>
                <td>
                    <input id="beginDate" type="text" class ="easyui-datetimebox" runat="server"  required="true" style="width:150px"/>
                </td>
                <td > -</td>
                <td> 
                    <input id="endDate" type="text" class ="easyui-datetimebox" runat="server"  required="true" style="width:150px"/></td>
                <td rowspan="2">
                    <a id="btnQuery" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">Query</a>                                
                </td>                                             
            </tr>
            
            <tr>
                <td>BuyerId:</td>
                <td>
            	    <input id="txtBuyerId" runat="server" style="width:200px;" /></td>
                <td>BuyerName:</td>
                <td>
            	    <input id="txtBuyerName" runat="server" style="width:194px;" /></td>
                <td><input type="radio" id = "rxdan"  runat="server" name = "g1"/><label for = "rxdan">下单日期</label></td>
                <td>
                    <input id="xdbeginDate" type="text" class ="easyui-datetimebox" runat="server"  
                        required="true" style="width:150px"/></td>
                <td>
                    -</td>
                <td>
                    <input id="xdendDate" type="text" class ="easyui-datetimebox" runat="server"  
                        required="true" style="width:150px"/></td>
            </tr>
            
            <tr>
                <td>新/原单号:</td>
                <td>
            	    <input id="txtNewOrderId" runat="server" style="width:200px;" /></td>
                <td>订单状态:</td>
                <td>
                <select id = "ddlOrderStatusId" runat = "server" class="easyui-combobox" style="width:200px;"></select></td>
                <td><input type=radio id = "rxgai"  runat="server" name = "g1" /><label for = "rxgai">修改日期</label></td>
                <td>
                    <input id="xgbeginDate" type="text" class ="easyui-datetimebox" runat="server"  
                        required="true" style="width:150px"/></td>
                <td>
                    -</td>
                <td>
                  <input id="xgendDate" type="text" class ="easyui-datetimebox" runat="server"  
                         required="true" style="width:150px"/></td>

                <td><input id="chkDE" type="checkbox" name="chkDE" /><label for="chkDE">德国</label></td>
            </tr>            
            <tr >
                <td >标准化:</td>
                <td ><select  id="ddlStandard" runat="server" class="easyui-combobox" style="width:206px;"></select></td>
                <td >规格型号:</td>
                <td ><input  id="txtUserCode" runat="server" style="width:194px;"/></td>
                <td >ItemId:</td>
                <td ><input  id="txtItemId" runat="server" style="width:145px;"/></td>              
                <td colspan="2" >保留原因:<input id="txtRetentionReson" runat="server" style="width:100px;" /></td>
               
                <td style = "vertical-align:middle">
                    <input id="chkquantity" type="checkbox" name="chkquantity" /><label for="chkquantity">赠送</label>
                    <input id="chkresend" type="checkbox" name="chkResend" /><label for="chkResend">重发</label>
                    <input id="chkmemo" type="checkbox" name="chkmemo" /><label for="chkmemo">留言</label>
                </td>
            </tr>
            <tr>
                <td>重发单原因:</td>
                <td><input  id="txtResendReason" runat="server" style="width:200px;"/></td>    
                <td >负责人:</td>
                <td ><select  id="ddlFZR" runat="server" class="easyui-combobox" style="width:200px;"></select></td>
                 <td align ="right" >
                 <asp:LinkButton ID="btnExpore" CssClass = "easyui-linkbutton" Text=" 导  出 " runat="server" onclick="btnExpore_Click"></asp:LinkButton> 
                </td>    
                <td><input id="txtOrderPingZheng" runat="server" style="width:145px;"/></td>                     
            </tr>                    
        </table>
    </div>
    <div id = "cmd" class="easyui-panel" title="指令区..." style="margin-bottom:5px; width:1100px">
        <table id = "tcmd">
            <tr>
                <td>
                    <a id="btnInvalidOrder" href="javascript:void(0);" class="easyui-linkbutton" disable = "disable" title = "订单作废">订单作废</a>
                </td>
                <td>
                    <a id="btnCancelRetentionOrder" href="javascript:void(0);" class="easyui-linkbutton" title = "取消保留订单">取消保留</a>
                </td>
                <td>
                    <%--<a id="btnAudit" href="javascript:void(0);" class="easyui-linkbutton" title = "客服审核" disabled="true">客服审核</a>--%>
                    <a id="btnOrderPingZheng" href="javascript:void(0);" class="easyui-linkbutton" runat="server" OnServerClick="btnOrderPingZheng_Click" title = "发货凭证">发货凭证</a>

                </td>
                <td>
                    <%--<a id="btnReturnProduct" href="javascript:void(0);" class="easyui-linkbutton" title = "客户退货" disabled="true">客户退货</a>--%>
                    <a id="btnCOrderDetail" href="javascript:void(0);" class="easyui-linkbutton" title = "生成明细" >生成明细</a>
                </td>
                <td>
                    <a id="btnReBuilderOrder" href="javascript:void(0);" class="easyui-linkbutton" title = "订单重发">订单重发</a>
                </td>
                <td>
                    <a id="btnRefundMoney" href="javascript:void(0);" class="easyui-linkbutton" style = "color:Red; font-weight:bold;" title = "客户退款">客户退款</a>
                </td>
                <td>
                    <a id="btnSplitOrder" href="javascript:void(0);" class="easyui-linkbutton" title = "订单拆分">订单拆分</a>
                </td>                                                 
                <td>
                    <%--<a id="btnMergeOrders" href="javascript:void(0);" class="easyui-linkbutton" title = "订单合并">订单合并</a>--%>
                    <a id="btnNewNegative" href="javascript:void(0);" onclick="btnNewNegative();" class="easyui-linkbutton" title = "负评新增">负评新增</a>
                </td>   
            
                <td>
                    <a id="btnAuditMore" href="javascript:void(0);" class="easyui-linkbutton" style = "color:Red; font-weight:bold;" title = "批量审核">批量审核</a>
                   <%-- <a id="btnxsglian" href="javascript:void(0);" class="easyui-linkbutton" title = "显示关联订单">显示关联</a>--%>
                </td>
                <td style = "width:150px">
                    <a id="btnCustomLableCompleteHandle" href="javascript:void(0);" class="easyui-linkbutton" title = "不完全代码处理" >不完全【单笔】</a>
                </td> 
             </tr> 
             
             <tr>                         
                <td>
                    <a id="btnCancelMatch" href="javascript:void(0);" class="easyui-linkbutton" title = "取消匹配">取消匹配</a>
                </td>
                <td>
                    <a id="btnPayMent" href="javascript:void(0);" class="easyui-linkbutton" title = "确认收款" >发货取消</a>
                </td>
                 <td>
                    <a id="btnCancelPreAudit" href="javascript:void(0);" class="easyui-linkbutton" title = "取消待审">取消待审</a>
                </td>
                <!--<td>
                    <a id="btnCancelAudit" href="javascript:void(0);" class="easyui-linkbutton" title = "反审核订单">反&nbsp; 审&nbsp; 核</a>
                </td>-->
                <td>
                    <a id="btnResetReserve" href="javascript:void(0);" class="easyui-linkbutton" title = "保留重置" style = "color:Red; font-weight:bold;">保留重置</a>
                </td>               
                    <td>
                  <%-- <a id="btnspthuan" href="javascript:void(0);" class="easyui-linkbutton" title = "商品替换">商品替换</a>--%>
                   <a id="btnblchul" href="javascript:void(0);" class="easyui-linkbutton" title = "商品替换">库存检查</a>
                </td>
                <td>
                    <a id="btnthcxun" href="javascript:void(0);" class="easyui-linkbutton" title = "商品替换查询">替换查询</a>
                </td>
            
                <td>
                    <a id="btnqhjcha" href="javascript:void(0);" onclick="window.open('../Bas/ProductTracking.aspx');" class="easyui-linkbutton" title = "缺货检查">缺货检查</a>
                </td>
                <td>
                    <a id="btnInvalidOrderOutDate" href="javascript:void(0);" class="easyui-linkbutton" title = "过期作废">过期作废</a>
                </td>
                <td>                 
                    <a id="btnshdbliu" href="javascript:void(0);" class="easyui-linkbutton" title = "手动保留">手动保留</a>                  
                </td>
                <td>
                    <a id="btnProcessMoreNoCompleteOrder" href="javascript:void(0);" style = "color:Red; font-weight:bold;" class="easyui-linkbutton" title = "不完全【批量】">不完全【批量】</a>
                </td>
            </tr>
        </table>
    </div>
    <table id="orders"></table>    
    <div id="tabs" style="margin-top:5px;">
        <div id="divspmxi" title="商品明细">
            <table id="tproduct"></table>   
        </div>
        <div id="divddmxi" title="订单明细">
            <table id="torderdetail"></table>   
        </div>
         <div id="divppmxi" title="PayPal明细">
            <table id="tppdetail"></table>   
        </div>
         <div id="divfhxxi" title="发货信息">
            <table id="tfhxxi"></table>   
        </div>
         <div id="divpjtsu" title="评价投诉" style="padding:10px;">
         <div id="divpjtsu-c">
            <div id="divpjtsu-c-pjia" title="评价信息">
                <table id="tpjia"></table>   
            </div>
            <div id="divpjtsu-c-tsu" title="投诉信息">
                <table id="ttsu"></table>   
            </div>
         </div>
        </div>
         <div id="divthuo" title="退货信息">
            <table id="tthxxi"></table>   
        </div>
         <div id="divtkuan" title="退款信息">
            <table id = "tkhtkuan"></table>
        </div>
         <div id="divcfa" title="重发信息">
            <table id="trefhxxi"></table>
        </div>
    </div>
    
    <div id="pthuan" title = "商品替换" style="width :600px; height:300px">
        <div style=" height :205px; width:580px; line-height:70px;">
        <input type="hidden" id="txtoids" />
        <input type="hidden" id="txtebayuserid" />
          <table>        
           <tr>
              <td >子订单:</td>
              <td >
                 <select id = "ddlOrdersLineitemId" style="width:220px" class="easyui-combobox" runat= "server"></select>           
              </td>
              <td ><p>原商品:</p></td>
              <td colspan ="4" >
                    <select id = "ddlProduct" style="width:220px" class="easyui-combobox" runat= "server" ></select>
              </td>
            </tr>
            <tr>
              <td><p>替换商品:</p></td>
              <td>
                <input type="text" id="txtProductB" style="width:220px"/>
              </td>
              <td ><p>替换比率:</p></td>
               <td>
                <input class="easyui-numberbox" type="text" id="txtOrginalQuantity" style="width:20px" value = "1" maxlength ="2"/>
               </td>
               <td>：</td>
               <td>
                <input class="easyui-numberbox" type="text" id="txtNewQuantity" style="width:20px" value="1" maxlength = "2"/>
               </td>
          </tr>
          </table>
        </div>
        <div style="text-align:right;line-height:20px; margin-right :20px; height:20px">
			<a id="btnthok" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" >Ok</a>
			<a id="btnthclose" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)">Cancel</a>
		</div>
    </div>    
    <div id="divthlog" title="替换记录">
        <table id="tthlog"></table>   
    </div>
    
    <div id="divddglian" title="关联订单...">
        <table id="tddglian"></table>   
    </div>
    <!--<div id = "RefundMoneyWindow" title = "退款信息">
        <table>
            <tr>
                <td>
                    Ebay帐号:
                </td>
                <td>
                    <input  id = "txtRefundMoneyEbayUserId" readonly = "readonly"  style = "width:200px"/>
                </td>
             
            </tr>
            <tr>
                <td>
                    订单号:
                </td>
                <td>
                    <input  id = "txtRefundMoneyOrderId" readonly = "readonly"  style = "width:200px"/>
                </td>
             
            </tr>
            <tr>
                <td>
                    退款金额:
                </td>
                <td>
                    <input  id = "txtRefundMoney" class = "easyui-numberbox" runat= "server" require = "true" precision = "2"  style = "width:200px"/>
                </td>                
            </tr>
            <tr>
                <td>
                    退款类型:
                </td>
                <td>
                    <select id = "ddltkrefType" style = "width:206px" runat= "server" ></select>
                </td>
            </tr>
            <tr>              
                <td>
                    责任部门:
                </td>
                <td>
                    <select id = "ddltkdepartment" style = "width:206px" runat= "server" name="D1" ></select>
                </td>
            </tr>
            <tr>         
                <td>
                    投诉状态:
                </td>
                <td>
                    <select id = "ddltkdisputeStatus" runat = "server" style = "width:206px"></select>
                </td>
            </tr>
        </table>
        <table id="tbOrderDetail"></table>
         <div style="text-align:right;height:30px;line-height:30px; padding:10px;">
			<a id="btnRefundMoneyOK" class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" >Ok</a>
			<a id="btnRefundMoneyCancel" class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)">Cancel</a>
		</div>
    </div>-->
    <div id = "CheckQueryWindow" title = "请选择操作条件">
    <input type = "hidden" id="txtprintcmd" value="" />
        <table>
            <tr>
                <td><input type=radio id = "rdtoday" runat = "server" name = "g2" checked="true"/><label for = "rdtoday">今日订单</label></td>
            </tr>
            <tr>
                <td><input type=radio id = "rdcurrent" runat = "server" name = "g2"/><label for = "rdcurrent">当前条件</label></td>
            </tr>
            <tr>
                <td><input type=radio id = "rdcheckorder" runat = "server" name = "g2"/><label for = "rdcheckorder">人工选择</label></td>
            </tr>
        </table>
         <div style="text-align:right;height:30px;line-height:30px; padding:10px;">
         <a id = "btnCheckQueryOK" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">确认</a>
			<a id="btnCheckQueryCancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)">取消</a>
		</div>
	</div>		
	<div id = "UpdateOrdersWindow" title = "批量修改">
	    <input type = "hidden" runat = "server" id = "txtHiddenplxg" />
        <table>
            <tr>
                <td>
                    订单状态:
                </td>
                <td>
                    <select id = "ddlStatusId" style = "width:206px" runat= "server" ></select>
                </td>
            </tr>
            <tr>
                <td>
                    发货方式:
                </td>
                <td>
                    <select id = "ddlDeliveryId" style = "width:206px" runat= "server" ></select>
                </td>
            </tr>            
        </table>
         <div style="text-align:right;height:30px;line-height:30px; padding:10px;">
			<a id="btnUpdateOrdersOK" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" >Ok</a>
			<a id="btnUpdateOrdersCancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)">Cancel</a>
		</div>
    </div>
     <div id="divSelectDate" title = "请选择日期...">
        <div style="height:120px; text-align:center; line-height:120px;">
            <div style = "padding:40px;">
                <span>处理日期：</span><input id="txtHandleDate" type="text" class ="easyui-datebox" runat="server" style="width:100px"/>
            </div>
        </div>
        <div style="text-align:right; padding:10px;">
			<a id="btnCheckOK" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" >Ok</a>
			<a id="btnCheckCancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)">Close</a>
		</div>
    </div>    
    <div id = "Divshdbliu" title = "手动保留">	   
        <table style="margin-top :10px;">
            <tr>
                <td>
                    保留原因:
                </td>
                <td>
                    <input  id = "txtReason"  runat= "server" require = "true"   style = "width:200px"/>
                </td>
            </tr>                   
        </table>
         <div style="text-align:right;height:30px;line-height:30px; padding:10px;">
			<a id="btnshdbliuOK" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" >Ok</a>
			<a id="btnshdbliuCancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)">Cancel</a>
		</div>
    </div>

    <div id="Divxzspin" title = "新增商品" style="width :600px; height:300px">
        <div style=" height :205px; width:580px; line-height:70px;">
        <input type="hidden" id="txtoid" />
        <input type="hidden" id="txteid" />
          <table>
            <tr>
               <td >ebay帐号:</td>
               <td><input type="text" id="txtebayid" style="width:220px"/> </td>
               <td >订单号:</td>
               <td><input type="text" id="txtOrdersId" style="width:220px"/> </td>
           </tr>
           <tr>
              <td >子订单:</td>
              <td >
                 <select id = "ddloLineitemId" style="width:220px" class="easyui-combobox" runat= "server"></select>
              </td>
          <%--    <td >仓库编号:</td>
              <td >
                 <select id = "ddlWarehouseId" style="width:220px" class="easyui-combobox" runat= "server"></select>
              </td>--%>
            </tr>
          </table>
        </div>
        <div style="text-align:right;line-height:20px; margin-right :20px; height:20px">
			<a id="btnxzspinOk" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" >Ok</a>
			<a id="btnxzspClose" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)">Cancel</a>
		</div>
    </div>
    <div id="dlgAuditMore" title = "审核类型">
        <div id="form-body">
            <table>
                <!--<tr>
                    <td><a id="btnAllPreAudit" href="javascript:void(0);" class="easyui-linkbutton" style = "color:Red; font-weight:bold;" title = "全部待审">全部待审</a></td>
                </tr>
                <tr>
                    <td><a id="btnSelectedPreAudit" href="javascript:void(0);" class="easyui-linkbutton" style = "color:Red; font-weight:bold;" title = "选中待审">选中待审</a></td>
                </tr>
                <tr>
                    <td><a id="btnAudit" href="javascript:void(0);" class="easyui-linkbutton" style = "color:Red; font-weight:bold;" title = "开始审核">开始审核</a></td>
                </tr>
                <tr>
                    <td><a id = "btnAuditMoreOK" class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)">关闭</a></td>
                </tr>-->
                <tr>
                    <td>
                        <input type="radio"  id="rdAllPreAudit" runat="server" name="AuditType" checked="true" />
                        <label for = "rdAllPreAudit">全部待审</label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="radio"  id="rdPreAudit" runat="server" name="AuditType" />
                        <label for = "rdPreAudit">选中待审</label>
                    </td>
                </tr>
                <%--<tr>
                    <td>
                        <input type="radio"  id = "rdCancelPreAudit" runat = "server" name = "AuditType" />
                        <label for = "rdCancelPreAudit">取消待审</label>
                    </td>
                </tr>--%>
                <tr>
                    <td>
                        <input type="radio"  id = "rdAudit" runat = "server" name = "AuditType" />
                        <label for = "rdAudit">开始审核</label>
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align:right;height:30px;line-height:30px; padding:10px;">
            <a id = "btnAuditMoreOK" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)">确认</a>
			<a id = "btnAuditMoreCancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)">取消</a>
		</div>
    </div>

    <div id="mydialog" style="display:none;padding:5px;width:500px;height:300px;" title="负评新增">
        <table>
            <tr>
                <td>EbayUserId:</td>
                <td><input type="text" id="nEbayUserId" readonly="readonly" /></td>
            </tr>
            <tr>
                <td>OrderSalesRecordNumber:</td>
                <td><input type="text" id="nOrderSalesRecordNumber" readonly="readonly" /></td>
            </tr>
            <tr>
               <td>CommentText:</td>
               <td><textarea rows="5" cols="30" style="resize: none;" id="nCommentText" ></textarea></td>
            </tr>
            <tr>
                <td>ItemID:</td>
                <td><input type="text" id="nItemID" /></td>     
            </tr>
            <tr>
                <td>CommentTime</td>
                <td><input id="nCommentTime" type="text" class ="easyui-datebox" style="width:100px"/></td>
            </tr>
<%--        Role<input type="text" id="nRole" /><br />
        TransactionID<input type="text" id="nTransactionID" /><br />
        OrderLineItemID<input type="text" id="nOrderLineItemID" /><br />
        ItemTitle<input type="text" id="nItemTitle" /><br />
        ItemPrice<input type="text" id="nItemPrice" /><br />
        CurrencyId<input type="text" id="nCurrencyId" /><br />
        ImportDate<input type="text" id="nImportDate" /><br />--%>

        </table>
    </div>

    <iframe id="diframe" style = "width:0px; height:0px"></iframe>
    </form>
</body> 
</html>
